package com.example.mybaisplus1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author yuyongli
 * @since 2022-12-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Dept implements Serializable {

    private static final long serialVersionUID = 1L;
    // 逻辑删除

    @TableId(value = "deptno", type = IdType.AUTO)//逻辑删除

    private Integer deptno;
    //@TableLogic
    private String denamr;

    private String loc;

    @TableField(exist = false) //不存在单表查询中
    private List<Troles> troles;  // 默认roles 是的dept中的一个列
}
